package cn.edu.dlnu.web.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @RequestMapping("/login")
    public String login(String username,String password){
        System.out.println(username);
        System.out.println(password);

        if("zhangsan".equals(username)&&"123".equals(password)){
            return "ok";
        }
        else{
            return "error";
        }
    }
}
